﻿using System;
using ITTestingSystem.Domain.Entities;

namespace ITTestingSystem.BusinessLogic.DataServices.Abstract
{
    public interface IUserService : IBaseService<User>
    {
        User FirstOrDefault(Func<User, bool> predicate);
        User GetUserByEmail(string email);
        User GetUserByLogin(string login);
        string GetRoleNameByUserName(string username);
        User GetUserByLoginPassword(string login, string password);
        bool UserExist(string email, string login);
        string GetUserToken(User user);
        bool SetPasswordConfirm(string token);
    
    }
}
